/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package ObjectClass;

/**
 *
 * @author Jeppe
 */
public class Vehicle {
    private int ID;
    private String licensePlate;
    private String vType;
    private int maxNumberOfPallets;
    private int cubicMeters;
    private int maxWeight;

    public Vehicle(int ID, String licensePlate, String type, int maxNumberOfPallets, int cubicMeters, int maxWeight) {
        this.ID = ID;
        this.licensePlate = licensePlate;
        this.vType = type;
        this.maxNumberOfPallets = maxNumberOfPallets;
        this.cubicMeters = cubicMeters;
        this.maxWeight = maxWeight;
    }

    public int getID() {
        return ID;
    }

    public String getLicensePlate() {
        return licensePlate;
    }

    public String getvType() {
        return vType;
    }

    public int getMaxNumberOfPallets() {
        return maxNumberOfPallets;
    }

    public int getCubicMeters() {
        return cubicMeters;
    }

    public int getMaxWeight() {
        return maxWeight;
    }

   

    public String toStringSQL(){
        return "('"+licensePlate+"', '"+vType+"', "+maxNumberOfPallets+", "+cubicMeters+", "+maxWeight+")";
    }
    
    public String toStringInfo() {
        return "Regnr: " + licensePlate + "\nType: " + vType + "\nMax antal paller" + maxNumberOfPallets + "\nm3:" + cubicMeters + "\nVægt: " + maxWeight;
    }
    
    public String toString(){
        return vType+" "+licensePlate;
    }
    
}
